package cn.hanyx.coder.design.pattern.behavioral.observer.demo02;

import com.google.common.eventbus.Subscribe;

/**
 * RegPromotionObserver
 *
 * @author hanyx
 * @date 2020/06/03
 */
public class RegPromotionObserver {

    /**
     * 通过方法参数类型给观察者区分类型
     * @param userId
     */
    @Subscribe
    public void handleReqSuccess(Integer userId) {
        System.out.println("RegPromotionObserver handleReqSuccess userId: " + userId);
    }
}
